<?php
/**
 *
 * @author Dima
 *
 */
class modules_default_forms_ContactusForm extends forms_FormBase
{
	public function init()
	{
		$oNameElement = new Zend_Form_Element_Text('name');
		$oNameElement = $this->_initDefaultFiltersAndValidators($oNameElement);
		$oNameElement->addValidator(new Zend_Validate_StringLength(0, 255));
		$this->addElement($oNameElement);

		$oEmailElement = new Zend_Form_Element_Text('email');
		$oEmailElement = $this->_initDefaultFiltersAndValidators($oEmailElement);
		$oEmailElement->addValidator(new Zend_Validate_StringLength(0, 255));
		$oEmailElement->addValidator(new Zend_Validate_EmailAddress());
		$this->addElement($oEmailElement);

		$oNameElement = new Zend_Form_Element_Text('subject');
		$oNameElement = $this->_initDefaultFiltersAndValidators($oNameElement);
		$oNameElement->addValidator(new Zend_Validate_StringLength(0, 255));
		$this->addElement($oNameElement);

		$oMessageElement = new Zend_Form_Element_Textarea('message');
		$oMessageElement = $this->_initDefaultFiltersAndValidators($oMessageElement);
		$this->addElement($oMessageElement);
	}
}